const router = require('koa-router')()
const homeController = require('../controllers/home')

// 登录主页
router.get('/', homeController.login)
router.get('/login', homeController.login) 
router.post('/checkLogin',homeController.checklogin)

// 首页
router.get('/index',homeController.index)

// 退出登录
router.get('/logout',homeController.logout)

module.exports = router
